package com.dyw.spzx.model.vo.common;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SYSTEM_ERROR(9999 , "您的网络有问题请稍后重试"),
    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败"),
    LOGIN_ERROR(201,"用户名或密码错误"),
    USER_NAME_IS_EXISTS(202,"用户已存在"),
    LOGIN_EXPIRE(1000,"登录过期"),
    LOGIN_ERROR_TOKEN(1001,"token错误"),
    LOGIN_ERROR_USER(1002,"用户不存在"),
    LOGIN_ERROR_SEALING(1003,"密码错误"),
    LOGIN_ERROR_CAPTCHA(1004,"验证码为空"),
    LOGIN_CAPTCHA_MISTAKEN(1005,"验证码错误"),
    LOGIN_CAPTCHA_OVERDUE(1006,"验证码已过期"),
    LOGIN_AUTH(1007,"未登录"),
    NODE_ERROR(1008,"存在子节点"),
    ERROR_DATA(1009,"数据错误"),

    USER_CANNOT_EMPTY_ERROR(1010,"用户名,密码,姓名不能为空"),

    USER_ERROR(1011,"该用户被禁用");





    private Integer code; // 状态码
    private String message; // 响应信息

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
